﻿namespace Quartz.NET8.Web.Extensions;

public static class StaticHttpContextExtensions
{
    public static IApplicationBuilder UseStaticHttpContext(this IApplicationBuilder app)
    {
        var httpContextAccessor = app.ApplicationServices.GetRequiredService<IHttpContextAccessor>();
        Utility.HttpContext.Configure(httpContextAccessor);
        return app;
    }
}
